<template>
	<view>
		<uni-card v-for="(item,index) in list" title="" @click="xianq(item.id)">
			<view class="u-font-20">
				{{item.title}}
			</view>
			<view>承办单位:{{item.undertaker}}</view>
			<view>提交时间:{{item.createTime}}</view>
			<view>处理状态:{{item.state == 1?'已处理':'未处理'}}</view>
		</uni-card>
		<view style="height: 20vh;"></view>
		<uni-group style="position: fixed;bottom: 0%;right: 0%;left: 0%;z-index: 99;">
			<button type="primary" @click="xia">发布诉求</button>
		</uni-group>
	</view>
</template>

<script>
	import api from 'commer/apiURL.js'
	export default {
		data() {
			return {
				base:api.baseurl,
				list:[],
				id:'',
			}
		},
		onShow(){
			this.getlun(this.id)
		},
		onLoad(options) {
			this.getlun(options.id)
			this.id = options.id
		},
		methods: {
			xianq(id){
				uni.navigateTo({
					url:'xianq?id='+id
				})
			},
			xia(){
				uni.navigateTo({
					url:'xinshu?id='+this.id
				})
			},
			getlun(id){
				this.$get(this.base+'/prod-api/api/gov-service-hotline/appeal/list',{
					appealCategoryId:id
				}).then((res)=>{
					this.list = res.rows
				})
			}
		}
	}
</script>

<style>

</style>
